<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div ng-controller="Ctrl">
		<ul>
			<li ng-repeat="user in users">
				{{user.name}}
			</li>
		</ul>
	</div>

	<script src="./angular.js"></script>
	<script type="text/javascript">
		var module = angular.module("app", []);

		module.controller("Ctrl", ['$scope','$http',function($scope, $http) {
			$http({
				method: "GET",
				url: "data.json"
			})
			.success(function(data, status, headers, config) {
				console.log('success');
				console.log(data);
				$scope.users = data;
			})
			.error(function(data, status, headers, config) {
				console.log('err');
			});
		}]);
	</script>
</body>
</html>